/*
 动态生成，仓库飞机产等地图位置
 1:汽车
 2:飞机
 3:====
 */
var bigHouse_Tpl = {
    ss: '',
	win:{
		type:'noBorder'
	},
    load: function(o,subFunctionArguments){
        //活动开关
        if (!ConfigUser.SystemMenugodBigHouseOpen) {
            return false;
        }
        this.ss = '';
        for (var key in o) {
            window[key] = o[key];
        }
        //存在c._action_prowse，则载入指定的模版，否则将载入默认的defaultTpl
        if (c._action_prowse) {
            if (this[c._action_prowse]) {
                this.ss = this[c._action_prowse](subFunctionArguments).join('');
            } else {
                this.ss = "模版未定义";
            }
        } else {
            this.ss = this.defaultTpl(subFunctionArguments).join('');
        }
		this.ss = widget.load(this.ss,this.win);
		//加上左边窗口的内容
        return this.ss;
    },
    defaultTpl: function(){
        //主页
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        var s = new Array();
        s.push("<div style='position:absolute;width:100%;top:0;z-index:99;'>		<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','detail');\">详细页</button>");
        s.push("		<button onclick=\"c.__OnSend('ajax_action.php?action=villa&ctl=create','',c.__func_comm_list,'bigHouse_Tpl','manage');\">管理我的庄园</button>");
        s.push("		<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','transport');\">运输原料</button>");
        s.push("		<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','massage');\">留言</button>");
        s.push("		<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');\">查看留言</button>");
        s.push("<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','garage');\">停车场</button>");
        s.push("<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','airport');\">飞机场</button>");
        s.push("<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','medal');\">勋章展览馆</button>");
        s.push("<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','title');\">称号展览馆</button>");
        s.push("</div>");

        /*增加的新页面图*/
        //这是页面所有建筑的位置
        /*
         */
		c.__loadJs(ImgRoot+'js/templates/public_Tpl.js');
        var pos = {
            swimming : ["position: absolute; left: 305px; top: 62px;z-index:1", "游泳池",ImgRoot + "images/bigHouse/build/swimming/01/01.png",{w:110,h:100,t:90,l:360,hint:"游泳池"}],
            airport  : ["position: absolute; left: 135px; top: 0px;z-index:2", "飞机场",ImgRoot + "images/bigHouse/build/airport/01/01.png",{w:130,h:80,t:30,l:150,hint:"飞机场"}],
            beach    : ["position: absolute; left: 90px;  top: 240px;z-index:3", "海滨",ImgRoot + "images/bigHouse/build/beach/01/01.png",{w:100,h:80,t:250,l:110,hint:"海滨"}],
            house    : ["position: absolute; left: 275px; top: 275px;z-index:4", "住宅",ImgRoot + "images/bigHouse/build/house/01/01.png",{w:120,h:100,t:300,l:310,hint:"住宅"}],
            medal    : ["position: absolute; left: 0px;   top: 90px;z-index:5", "勋章展览馆",ImgRoot + "images/bigHouse/build/medal/01/01.png",{w:130,h:80,t:110,l:20,hint:"勋章展览馆"}],
            parking  : ["position: absolute; left: 530px; top: 90px;z-index:6", "停车场",ImgRoot + "images/bigHouse/build/parking/01/01.png",{w:100,h:80,t:110,l:560,hint:"停车场"}],
            title    : ["position: absolute; left: 190px; top: 142px;z-index:7", "称号展览馆",ImgRoot + "images/bigHouse/build/title/01/01.png",{w:120,h:100,t:160,l:200,hint:"称号展览馆"}],
            wharf    : ["position: absolute; left: 420px; top: 200px;z-index:8", "码头",ImgRoot + "images/bigHouse/build/wharf/01/01.png",{w:120,h:100,t:210,l:450,hint:"码头"}],
            warehouse: ["position: absolute; left: 420px; top: 0px;", "仓库",ImgRoot + "images/bigHouse/build/warehouse/01/01.png",{w:100,h:80,t:15,l:470,hint:"仓库"}]
        }

        s.push("<div id='login' style='width:672px; height:426px; background:url(" + ImgRoot + "images/bigHouse/login.jpg) no-repeat'>");

		//循环生成所有DOM
		 for (var i in pos){
			     s.push("<div style='" + pos[i][0] + "'><img src='"+pos[i][2]+"'/></div>");
				 s.push("<p style='z-index:100;filter:alpha(opacity=1);opacity:0.010;background = #000000;cursor:pointer;position:absolute;width:"+pos[i][3].w+"px;height:"+pos[i][3].h+"px;top:"+pos[i][3].t+"px;left:"+pos[i][3].l+"px' hint='"+pos[i][3].hint+"'></p>")
			 }
        s.push("</div>")
        setTimeout("new elem_alt('login', 'p','hint','10px');", 200);
		//setTimeout(function(){new elem_alt('login', 'p','hint','10px');alert(1);},1000)
		return s;
    },
    manage: function(){
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        //管理
        var s = new Array();
        s.push("<div style='height:100%;width:100%;background:url(" + ImgRoot + "images/bigHouse/bg1.jpg) 0 0 no-repeat;'>");
        s.push("	<table width='500' cellspacing='0' style='position:absolute;left:135px;top:35px;height:60px;line-height:17px;'>");
		//改动处
        s.push("		<tr><td width='50%'>");
        s.push("			<span class='tdbg1'>庄园价值：</span><span class='red2'>"+o.villa.assets+"</span><span class='tdbg1'>G</span>");
        s.push("		</td><td rowspan='2' style='text-align:right'>");
        s.push("			<button>发送至聊天</button><button>查看留言</button>");
        s.push("		</td></tr>");
		s.push("        <tr><td class='tdbg1'><div style='width: 120px; float: left;'>木柴: <span class='red2'>1123456</span>/1123456</div><div style='width: 120px; float: left;'>金属: <span class='red2'>1123456</span>/1123456</div></td></tr>");
        s.push("		<tr><td class='tdbg1'>");
        s.push("			<div style='width:120px;float:left;'>粮食: <span class='red2'>1123456</span>/1123456</div><div style='width:120px;float:left;'>布匹: <span class='red2'>123</span>/1123456</div>");
		s.push("                                </td><td class='tdbg1'><div style='width: 120px; float: left;'>砖头: <span class='red2'>1123456</span>/1123456</div>")
        s.push("	</td></tr></table>");

        s.push("	<div style='position:absolute;width:632px;height:255px;left:24px;top:128px;'>");
        for (i in o.loadBuild)
        {
            var _tBuild = o.loadBuild[i];
            s.push("	<div class='house' onclick=\"BTO.TEMPLATES.load({action:'bigHouse_Tpl',action_prowse:'detail'},'"+i+"')\"><div class='construct'>"+_tBuild.state.info+"</div><img style='margin-left:7px;' src='" + ImgRoot + "images/bigHouse/house1.jpg' /><div class='descript'><span class='name'>"+_tBuild.name+"</span><span class='level'>等级："+_tBuild.level+"</span></div></div>");
        }
        s.push("	</div>");

        s.push("	<div style='position:absolute;top:385px;left:35px;'>");
        s.push("		<button onclick=\"c.__OnSend('ajax_action.php?action=villa','',c.__func_comm_list,'bigHouse_Tpl');\">返回</button>");
        s.push("	</div>");
        s.push("</div>");

        s.push("<style type=\"text/css\"> .house{text-align:left;padding:3px 1px 1px;width:146px;height:110px;background:url(" + ImgRoot + "images/bigHouse/houseBg.jpg) 0 0 no-repeat;margin:5px;text-align:center;float:left;_display:inline;_zoom:1;} .house div.construct{position: absolute; color: rgb(0, 255, 0); margin-left: 5px;} .house div.descript{text-align:left;margin:3px auto 0;width:94px;padding:2px 8px;height:18px;background:url(" + ImgRoot + "images/bigHouse/houseBg2.jpg) 0 0 no-repeat;line-height:18px;} .house div.descript .name{color:#e8c086;float:left;} .house div.descript .level{color:#ffca00;font-weight:bold;float:right;display:block;width:55px;text-align:right;} </style> ");
        return s;

    },
    detail: function(){
		this.win = {
			//配置左边小窗口的内容
			type:'character'
		}
		var jsObj = arguments[0];
		var upgradeInfoObj = o.loadBuild[jsObj];
        //详细页
        var s = new Array();
        s.push("<table width='100%' cellspacing='0'>");
        s.push("	<tr class='tabletop'><td>公司升级</td></tr><tr>");
        s.push("		<td style='height:340px; vertical-align:top'><table width='100%' cellspacing='0'>");
        s.push("			<tr>");
        s.push("				<td width='25%' class='tdbg1'>&nbsp;</td>");
        s.push("				<td width='75%'>"+upgradeInfoObj.name+"当前等级为：<span class='yellow3'>"+upgradeInfoObj.level+"级</span></td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>升级到X级需要：</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>花费G币：</td>");
        s.push("				<td>XXXG</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>需要木材原料：</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>需要布匹原料：</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>需要粮食原料：</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>需要金属原料：</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>升级时间：</td>");
        s.push("				<td class='brightgreen'>XXX小时</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>&nbsp;</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>升级后效果：</td>");
        s.push("				<td><p>效果1：XXXX </p></td>");
        s.push("			</tr><tr>");
        s.push("				<td class='tdbg1'>&nbsp;</td>");
        s.push("				<td>效果2：XXXX</td>");
        s.push("			</tr>");
        s.push("		</table></td>");
        s.push("	</tr><tr>");
        s.push("		<td style='text-align:right'>");
        s.push("			<button>升级</button>");
        s.push("			<button onclick=\"BTO.TEMPLATES.load({action:'bigHouse_Tpl',action_prowse:'manage'})\">返回</button>");
        s.push("</td></tr></table>");
        return s;
    },
    transport: function(){
        //运输原料

        var s = new Array();
        s.push("<div style='height:100%;width:100%;background:url(" + ImgRoot + "images/bigHouse/bg2.jpg) 0 0 no-repeat;'>");
        s.push("	<div style='margin:34px 0 0 38px;position:absolute;color:#744701;width:595px;height:55px;'><h2 style='color:#740101;font-size:12px;font-weight:bold;margin:0 0 5px;'>运输原料</h2>");
        s.push("	庄园的建设需要原料,原料是从工厂的原料仓库转送到庄园仓库,如果原料不足就不能建设庄园的建筑或者升级庄园的建筑。</div>");

        s.push("	<div style='position:absolute;margin:125px 0 0 32px; width:620px;'>");
        s.push("<table width='100%' cellspacing='0' style='color:#cfa665; font-weight:bold;'><tr>");
        s.push("		<td><table width='100%' cellspacing='0'>");
        s.push("			<tr>");
        s.push("				<td width='29%' rowspan='3'><img src='" + ImgRoot + "images/bigHouse/bigHouse1.jpg' /></td>");
        s.push("				<td width='24%'>仓库等级:</td>");
        s.push("				<td width='29%' class='yellow2'>10级</td>");
        s.push("				<td width='18%'>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td>每种原料可以存入:</td>");
        s.push("				<td class='allname'>10000</td>");
        s.push("				<td>&nbsp;</td>");
        s.push("			</tr><tr>");
        s.push("				<td>升级到下一级需要G币:</td>");
        s.push("				<td class='allname'>1000000</td>");
        s.push("				<td><button>立即升级</button></td>");
        s.push("			</tr>");
        s.push("	</table></td></tr><tr>");
        s.push("		<td style='padding-top:15px;'><table width='100%' cellspacing='0'>");
        s.push("			<tr>");
        s.push("				<td colspan='4'>输入要运送的原料数量</td>");
        s.push("				</tr><tr>");
        s.push("				<td colspan='4'><table width='100%' cellspacing='0' style='line-height:200%'>");
        s.push("					<tr>");
        s.push("						<td width='16%'>庄园库存:</td>");
        s.push("						<td width='21%'>木柴：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td width='21%'>金属：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td width='21%'>粮食：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td width='21%'>布匹：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("					</tr>");
        s.push("					<tr>");
        s.push("						<td>工厂库存:</td>");
        s.push("						<td>木柴：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td>金属：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td>粮食：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						<td>布匹：<span style='font-weight:normal'><span class='red2'>600</span>/<span style='color:#fff'>10000</span></span></td>");
        s.push("						</tr>");
        s.push("				</table></td>");
        s.push("				</tr><tr>");
		//此处改起
		s.push("                <td colspan='4'>")
		s.push("                              <table width='100%'>");
		s.push("                                   <tbody><tr>");
		s.push("                                        <td align='right'>木柴</td><td><span class='text_normal_out'><span class='text_normal_in'><input type='text'></span></span></td>");
		s.push("                                        <td align='right'>金属</td><td><span class='text_normal_out'><span class='text_normal_in'><input type='text'></span></span></td>");
		s.push("                                        <td align='right'>砖头</td><td><span class='text_normal_out'><span class='text_normal_in'><input type='text'></span></span></td>");
		s.push("</tr><tr>");
		s.push("                                        <td align='right'>粮食</td><td><span class='text_normal_out'><span class='text_normal_in'><input type='text'></span></span></td>");
		s.push("                                        <td align='right'>布匹</td><td><span class='text_normal_out'><span class='text_normal_in'><input type='text'></span></span></td>");
		s.push("</tr></tbody></table>");
		s.push("</td>")
		//此处改完
        s.push("			</tr>");
        s.push("		</table></td>");
        s.push("	</tr><tr>");
        s.push("		<td style='text-align:right'>");
        s.push("			<button>确定运输</button>");
        s.push("			<button onclick=\"c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl');\">返回</button>");
        s.push("</td></tr></table>");
        s.push("	</div>");

        s.push("</div>");

        return s;
    },
    massage: function(){
        //毫宅里留言页面
		this.win = {
			//配置左边小窗口的内容
			type:'character'
		}
        var s = new Array();
        s.push("<table style='width:100%'><tbody>");
        s.push("	<tr class='tabletop'><td colspan='2'><span>在这里您可查看所有的商会信息</span>商会列表</td></tr>");
        s.push("	<tr><td style='width:200px;height:300px;color:rgb(85,27,5); text-align:center;'>商会描述:</td><td><div class='inputtxt'><textarea name='Intro' id='UCofcIntro' style='width: 194px; height: 75px; overflow: auto;' onpropertychange='if(value.length&gt;200) value=value.substr(0,200)' onchange='__CodeLimit(this,200);' onblur='__CodeLimit(this,200);chk_badword_general(this.value, &quot;UCofcIntro&quot;, &quot;UCofc_bt&quot;, &quot;UCofcDesc_span&quot;);'></textarea>&nbsp;&nbsp;<span id='UCofcDesc_span'></span></div></td></tr>");
        s.push("	<tr><td colspan='2' style='text-align:right'><button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');return false;'>确定</button><button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');return false;'>返回</button></td></tr>");
        s.push("</tbody></table>");
        return s;
    },
    viewMassage: function(){
        //毫宅里查看留言
		this.win = {
			//配置左边小窗口的内容
			type:'character'
		}
        var s = new Array();
        s.push("<div style='width: 491px; height:240px; overflow:hidden;'>");
        s.push("<ul style='width: 491px; height:240px; overflow:hiden; padding:0px;margin:0px'>");
        s.push("<li style='height:30px; line-height:30px; overflow:hidden; background:#D5CF9D; width:491px; float:left;'>");
        s.push("<span style='display:block; float:left; width:115px; text-align:center; color:#F00;'>祝福</span>");
        s.push("<span style='display:block; float:left; width:200px; text-align:center; color:#F00;'>祝福内容</span>");
        s.push("<span style='display:block; float:left; width:105px; text-align:center; color:rgb(120,100,50)'>发件时间</span>");
        s.push("<span style='display:block; float:right; width:50px; text-align:center; color:rgb(120,100,50)'>状态</span>");
        s.push("</li>");
        for (i = 0; i < 7; i++) {
            s.push("<li style='height:30px; line-height:30px; overflow:hidden;color:#755915; width:491px; float:left;'>");
            s.push("<span style='display:block; float:left; width:25px; text-align:center;'><input type='checkbox' name='checkbox' style='float:left; position:relative; left:5px; top:5px; width:15px; height:15px;' /></span>");
            s.push("<span style='display:block; float:left; width:90px; text-align:center;'>【靓屁股妞】</span>");
            s.push("<span style='display:block; float:left; width:200px; text-align:center;'><a href='javascript:void(0)' style='color:#755915;'>具体是为了更好的</a></span>");
            s.push("<span style='display:block; float:left; width:105px; text-align:center;'>2010.10.01 22:10:11</span>");
            s.push("<span style='display:block; float:right; width:50px; text-align:center;'><a style='color:#755915;' href='javascript:void(0)'>已读</a></span>");
            s.push("</li>");
        }
        s.push("</ul>");
        s.push("</div>");
        s.push("<div style='height:20px; line-height:20px; text-align:left; overflow:hidden; color:#F00; width:489px; border:1px solid #00C;'>分页区</div>");
        s.push("<div style='text-align:right'>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>选择当前页</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>删除</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>全部删除</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>标记未读</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>标记已读</button>");
        s.push("</div>");
        return s;
    },
    garage: function(){
        //车库
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        var s = new Array();
        s.push("<div style='width:672px; height:426px; background:url(" + ImgRoot + "images/bigHouse/chat.jpg) no-repeat; overflow:hidden; margin:-1px 0 0 -2px'>");
        s.push("<div style='position:relative'>");
        s.push("<div style='position:absolute; left:-5px; top:250px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/leftchat.png' /></div>");
        s.push("<div style='position:absolute; top:255px; left:367px; z-index:0.2; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/rightchat.png' /></div>");
        s.push(this.BoxButton());
	    /*
        s.push("<div style='position:absolute;top:10px; right:10px;'>" + this.filterfont("车库信息", {
            "车子1": "车子",
            "车子2": "车子",
            "车子3": "车子"
        }) + "</div>")
		*/
		s.push((new public_Tpl.boxHTML({t:0,l:450,w:200,h:150,html:this.filterfont("车场信息",{lv:1,per:"翼哥",perptyer1:"这是停车场",perptyer2:"这还是停车场",stopNum:100,lvup:1}),op:60})).output());
        s.push("</div>")
        s.push("</div>");
        return s;
    },
    //飞机场版
    airport: function(){
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        var s = new Array();
        s.push("<div style='width:672px; height:426px; background:url(" + ImgRoot + "images/bigHouse/airport.jpg) no-repeat; overflow:hidden; '>");
        s.push("<div style='position:relative'>");
        s.push("<div style='position:absolute; left:50px; top:170px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/plant.png' /></div>");
        s.push(this.BoxButton())
		s.push((new public_Tpl.boxHTML({t:0,l:450,w:200,h:150,html:this.filterfont("机场信息",{lv:1,per:"翼哥",perptyer1:"这是停车场",perptyer2:"这还是停车场",stopNum:100,lvup:1}),op:90})).output());
		/*
        s.push("<div style='position:absolute;top:10px; right:10px;'>" + this.filterfont("机场信息", {
            "机场机场机场机场机场机场机场机场机场机场机场机场1": "机场",
            "机场2": "机场",
            "机场3": "机场"
        }) + "</div>")
		*/
        s.push("</div>")
        s.push("</div>");
        return s;
    },
    //透明字体内容为下面的窗体信息
    filterfont: function(tit, o){
		return "<div style='width: 200px; height: 30px; margin:0 auto; text-align:center'><h2 style='height: 19px; padding: 0pt; margin: 0pt; line-height: 19px; font-size: 13px; color: yellow;'>"+tit+"</h2></div>"+this.BoxMessage(o);
    },
    //窗体的信息  o 对象里1 1 对应;
    BoxMessage: function(o){
		var name = {lv:"等级",per:"拥有人",perptyer1:"效果1",perptyer2:"效果2",stopNum:"停放数量"}
        var s = [];
        for (var i in o) {
			if(name[i] == null){continue;}
            s.push("<div style='width:150px;color:red;height:15px;overflow:hidden;line-hight:15px;text-indent:10px'>" + name[i] + ":" + o[i] + "</div>");
        }
	if(o.lvup){s.push("<div style='width:200px;color:red;height:15px;overflow:hidden;line-hight:15px;text-indent:150px;cursor:pointer'>升级</div>");}
        return s.join('');
    },
    //四个按钮块
    BoxButton: function(){
        var s = [];
        s.push("<div style='position:absolute; top:10px; height:40px; left:100px; z-index:1'>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>上一页</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>下一页</button>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>返回</button>");
        s.push("</div>");
        s.push("<div style='position:absolute; top:10px; left:0px;'>");
        s.push("<button onclick='c.__OnSend('ajax_action.php?action=bigHouse_Tpl','',c.__func_comm_list,'bigHouse_Tpl','viewMassage');; return false;'>发送到聊天室</button>");
        s.push("</div>");
        return s.join('');
    },
    //勋章管理
    medal: function(){
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        var s = [];
        s.push("<div style='width:672px; height:426px; background:url(" + ImgRoot + "images/bigHouse/xzzlg/xzzlg.jpg) no-repeat; overflow:hidden; '>");
        s.push("<div style='position:relative'>");

        s.push("<div style='position:absolute; left:507px; top:207px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/xzzlg/xz.png' /></div>");
        s.push("<div style='position:absolute; left:415px; top:160px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/xzzlg/xz.png' /></div>");
        s.push("<div style='position:absolute; left:230px; top:160px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/xzzlg/xz.png' /></div>");
        s.push("<div style='position:absolute; left:133px; top:207px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/xzzlg/xz.png' /></div>");
        s.push("<div style='position:absolute; left:322px; top:235px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/xzzlg/xz.png' /></div>");

        s.push(this.BoxButton())
        s.push((new public_Tpl.boxHTML({t:0,l:450,w:200,h:150,html:this.filterfont("勋章信息",{lv:1,per:"翼哥",perptyer1:"勋章管理室",perptyer2:"勋章管理室",stopNum:100,lvup:1}),op:60})).output());
        s.push("</div>")
        s.push("</div>");
        return s;
    },
    //称号管理
    title: function(){
		this.win = {
			//配置左边小窗口的内容
			type:'noBorder'
		}
        var s = [];
        s.push("<div style='width:672px; height:426px; background:url(" + ImgRoot + "images/bigHouse/chzlg/chzlg.jpg) no-repeat; overflow:hidden; '>");
        s.push("<div style='position:relative'>");
        s.push("<div style='position:absolute; left:525px; top:197px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/chzlg/ch.jpg' /></div>");
        s.push("<div style='position:absolute; left:420px; top:250px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/chzlg/ch.jpg' /></div>");
        s.push("<div style='position:absolute; left:317px; top:197px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/chzlg/ch.jpg' /></div>");
        s.push("<div style='position:absolute; left:210px; top:250px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/chzlg/ch.jpg' /></div>");
        s.push("<div style='position:absolute; left:110px; top:197px; z-index:0.1; cursor:pointer'><img src='" + ImgRoot + "images/bigHouse/chzlg/ch.jpg' /></div>");

        s.push(this.BoxButton())
        s.push((new public_Tpl.boxHTML({t:0,l:450,w:200,h:150,html:this.filterfont("称号信息",{lv:1,per:"翼哥",perptyer1:"称号管理室",perptyer2:"称号管理室",stopNum:100,lvup:1}),op:70})).output());
        s.push("</div>")
        s.push("</div>");
        return s;
    }
    //移动函数
}























